//
//  OrderListCell.h
//  Recipe
//
//  Created by bing han on 12-7-12.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol OrderListDelegate <NSObject>

-(void) addDisher:(NSInteger) index;
-(void) removeDisher:(NSInteger) index;
-(void) deleteDisher:(NSInteger) index;

@end

@interface OrderListCell : UITableViewCell{
    IBOutlet UILabel *lblIndex;
    IBOutlet UILabel *lblname;
    IBOutlet UILabel *require;
    IBOutlet UILabel *price;
    IBOutlet UILabel *unit;
    IBOutlet UILabel *count;
    IBOutlet UIButton *addBtn;
    IBOutlet UIButton *removeBtn;
    IBOutlet UIButton *deleteBtn;
    
    id<OrderListDelegate> delegate;
}
@property (nonatomic, assign) id<OrderListDelegate> delegate;
@property (nonatomic, retain) IBOutlet UILabel *lblIndex;
@property (nonatomic, retain) IBOutlet UILabel *lblname;
@property (nonatomic, retain) IBOutlet UILabel *require;
@property (nonatomic, retain) IBOutlet UILabel *price;
@property (nonatomic, retain) IBOutlet UILabel *unit;
@property (nonatomic, retain) IBOutlet UILabel *count;
@property (nonatomic, retain) IBOutlet UIButton *addBtn;
@property (nonatomic, retain) IBOutlet UIButton *removeBtn;
@property (nonatomic, retain) IBOutlet UIButton *deleteBtn;

-(void) setCellWithDictionary:(NSDictionary*) disherOrder;

-(IBAction) addDisher:(id)sender;
-(IBAction) removeDisher:(id)sender;
-(IBAction) deleteDisher:(id)sender;

@end
